#include <stdio.h>

#define MAX 1024
#define NONE_FLUSH (1<<0)
#define LINE_FLUSH (1<<1)
#define FULL_FLUSH (1<<2)

typedef struct file_struct
{
   int fileno;
   int flag;
   char outbuffer[MAX];
   int bufferlen;
   int flush_method;
}File;

File* MyFopen(char* path,char* mode);
int MyFwrite(File* file,void *str,int len);
void MyFclose(File* file);
void MyFllush(File* file);

